package com.yzk.train.batch.feign;

import com.yzk.train.common.response.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Date;

@FeignClient(value = "train-business", fallback = BusinessFeignFallBack.class)
public interface BusinessFeign {

    @GetMapping(value = "/business/admin/daily-train/gen-daily/{date}", produces = "application/json;charset=utf-8")
    Result<Object> genDaily(@PathVariable @DateTimeFormat(pattern = "yyyy-MM-dd") Date date);

}
